<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('wechat_book_record', function (Blueprint $table) {
            $table->id();
            $table->string('media')->default('')->comment('媒体');
            $table->string('book_app')->default('')->comment('书城应用');
            $table->string('book_name')->default('')->comment('书籍名称');
            $table->string('type')->default('')->comment('书籍类型');
            $table->string('author')->default('')->comment('作者');
            $table->string('book_number')->default('')->comment('字数');
            $table->tinyInteger('is_ambiguous')->default(0)->comment('是否暧昧0否1是');
            $table->tinyInteger('is_end')->default(0)->comment('是否完结0否1是');
            $table->string('stuck_point_chapter')->default('')->comment('卡点章节');
            $table->string('recharge_template')->default('')->comment('充值模板');
            $table->string('book_money')->default('')->comment('书币价格');
            $table->string('link')->default('')->comment('链接');
            $table->string('remark')->default('')->comment('备注');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('wechat_book_record');
    }
};
